package cn.aresoft.excel.emuns;

/**
 * @Description
 * @Author yangfeng
 * @Date 2023/6/16 15:16
 */
public enum ValidateRuleEnumn {

    /**证件号码校验*/
    NOT_CONTAIN_ALL_ANGLE_RULE("NOT_CONTAIN_ALL_ANGLE_RULE","不能包含全角字符"),

    NOT_CONTAIN_CN_RULE("NOT_CONTAIN_CN_RULE","不能包含中文校验"),

    EQ_FIX_CONSTANT("EQ_FIX_CONSTANT","值必须为固定值校验"),

    NOT_EQ_FIX_CONSTANT("NOT_EQ_FIX_CONSTANT","值不能为固定值校验"),

    FIELD_LENGTH_LE_RULE("FIELD_LENGTH_LE_RULE","字段最大长度校验"),

    FIELD_LENGTH_EQ_RULE("FIELD_LENGTH_EQ_RULE","字段固定长度校验"),

    FIELD_LENGTH_GE_RULE("FIELD_LENGTH_GE_RULE","字段最小长度校验"),

    ONLY_NUMBER_RULE("ONLY_NUMBER_RULE","仅为数字校验"),

    DATA_LE_RULE("DATA_LE_RULE","字段数值小于等于固定值"),

    DATA_GE_RULE("DATA_GE_RULE","字段数值大于等于固定值"),

    DATA_LT_RULE("DATA_LT_RULE","字段数值小于固定值"),

    DATA_GT_RULE("DATA_GT_RULE","字段数值大于固定值"),

    ONLY_NUMBER_REMAIN_OPITON_RULE("ONLY_NUMBER_REMAIN_OPITON_RULE","最多保留小数点位数"),

    NOT_ONLY_NUMBER_RULE("NOT_ONLY_NUMBER_RULE","不仅仅为数字校验"),

    NOT_TRIM_RULE("NOT_TRIM_RULE","前后空格校验"),

    CONTAIN_BLANK_RULE("CONTAIN_BLANK_RULE","所有空格校验"),

    VALUE_EMPTY_RULE("VALUE_EMPTY_RULE","值为空校验"),

    SPECIAIL_CHAR_RULE("SPECIAIL_CHAR_RULE","特殊字符校验"),

    DICT_CODE_RULE("DICT_CODE_RULE","数据字典校验"),

    VALUE_REATED("VALUE_REATED","值重复校验规则"),

    OTHER_RULE("OTHER_RULE","其他规则");


    private String code;

    private String name;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    ValidateRuleEnumn(String code, String name) {
        this.code = code;
        this.name = name;
    }
}
